package com.yidu.hbatsams.dao;

import com.yidu.hbatsams.domain.AtsAttachmentEmp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsAttachmentEmpMapper {
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer aeId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsAttachmentEmp record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsAttachmentEmp record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsAttachmentEmp selectByPrimaryKey(Integer aeId);

    /**
     *查找没查看的外键表
     * @param
     * @return
     */
    AtsAttachmentEmp selectByPrimaryId(AtsAttachmentEmp atsAttachmentEmp);
    /**
     * 根据userId查找外键表
     * @param
     * @return
     */
    List<AtsAttachmentEmp> selectByPrimary(AtsAttachmentEmp atsAttachmentEmp);
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsAttachmentEmp record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsAttachmentEmp record);

    /**
     * 根据附件表ID修改有效
     * @param record
     * @return
     */
    int updateIsva(AtsAttachmentEmp record);

    /**
     * 根据用户Id修改有效
     * @param record
     * @return
     */
    int userIdupdate(AtsAttachmentEmp record);
    /**
     * 根据用户Id修改查看
     * @param record
     * @return
     */
    int updateLook(AtsAttachmentEmp record);
    /**
     * 按表属性ID进行查询有效的外键表数据集合
     * @return
     */
    List<AtsAttachmentEmp> atsfindId(AtsAttachmentEmp atsAttachmentEmp);
}